package com.zzyl.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "护理项目的vo")
public class NursingProjectVo {
    @ApiModelProperty(value = "ID", example = "1")
    private Integer id;

    @ApiModelProperty(value = "护理项目名称", required = true, example = "输液护理")
    private String name;

    @ApiModelProperty(value = "护理图片URL", required = true, example = "http://example.com/image.jpg")
    private String image;

    @ApiModelProperty(value = "价格（整数，单位：分）", required = true, example = "100") // 假设价格为整数，单位是分
    private BigDecimal price;

    @ApiModelProperty(value = "单位", required = true, example = "次")
    private String unit;

    @ApiModelProperty(value = "状态（0：禁用，1：启用）", required = true, example = "1")
    private Integer status;

    @ApiModelProperty(value = "护理要求",required = true,example = "用老人自带的沐浴露")
    private String nursingRequirement;

    @ApiModelProperty(value = "排序", required = true, example = "1")
    private Integer orderNo; // 注意：通常使用camelCase命名，而不是order_no或orderNo（取决于您的编码规范）

    @ApiModelProperty(value = "创建人ID", required = true, example = "123")
    private Long createBy;

    @ApiModelProperty(value = "修改人ID", required = true, example = "123")
    private Long updateBy;

    @ApiModelProperty(value = "创建时间", required = true, example = "2023-03-15T12:34:56")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime createTime; // 假设您使用的是Joda-Time或Java 8的LocalDateTime等日期时间类

    @ApiModelProperty(value = "修改时间", required = true, example = "2023-03-15T12:34:56")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime updateTime; // 同样，使用适当的日期时间类

    @ApiModelProperty(value = "护理项目描述",required = true, example = "这是一个输液护理项目")
    private String remark;

    @ApiModelProperty(value = "创建人名字",required = true,example = "院长")
    private String creator;
}
